package com.idealighter.game.recharge.message;

import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;

import com.idealighter.game.core.annotation.ReqMsg;
import com.idealighter.game.message.ModuleMsgIdConstant;
import com.idealighter.game.message.core.ReqMessage;

import lombok.Data;

@ReqMsg(ModuleMsgIdConstant.Recharge.RECHARGE_PAY)
@Data
public class ReqRechargePayMsg implements ReqMessage {
  @Protobuf(order = 1)
  private int id = ModuleMsgIdConstant.Recharge.RECHARGE_PAY;
  @Protobuf(order = 2)
  private int itemId;
  @Protobuf(order = 3)
  private int payType;

  public static enum PayType {
    ALI_PAY(1, "支付宝"), WE_CHAT_PAY(2, "微信支付"), APPLE_IN_APP_PAY(3, "苹果内购");

    private int id;
    private String name;

    private PayType(int id, String name) {
      this.id = id;
      this.name = name;
    }

    public int getId() {
      return id;
    }

    public String getName() {
      return name;
    }
  }
}
